import { _decorator, Component, find } from 'cc';
import { losChannel } from '../../app/Script/SDK/losChannel';
import { losChannelHw } from '../../app/Script/SDK/losChannelHw';
import { App } from '../../app/App';

const { ccclass, property } = _decorator;

@ccclass
export default class hwLogin extends Component {

        login() {
                (losChannel.instance().getChannel() as losChannelHw).qgLogin(async () => {
                        //find("Canvas/UIMgr/Common/UILoading").getComponent(UILoading).afterlogin()
                        find('UICanvas').getComponent(App).loading()
                        this.node.destroy()

                }, () => {


                })
        }
}
